using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmScholarship")]
    public class Scholarship
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ScholarId", ResourceType = typeof(Resources.ScholarshipsResource))]
        public int ScholarId { get; set; }

		[DataMember, Display(Name = "ScholarDescr", ResourceType = typeof(Resources.ScholarshipsResource))]
        public string ScholarDescr { get; set; }

		[ForeignKey("ScholarType")]
		[DataMember, Display(Name = "ScholarTypeId", ResourceType = typeof(Resources.ScholarshipsResource))]
        public int ScholarTypeId { get; set; }

		[ForeignKey("ScholarFund")]
		[DataMember, Display(Name = "ScholarFundId", ResourceType = typeof(Resources.ScholarshipsResource))]
        public int ScholarFundId { get; set; }

		[DataMember, Display(Name = "ScholarFundSeq2", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<int> ScholarFundSeq2 { get; set; }

		[ForeignKey("EduDegree")]
		[DataMember, Display(Name = "EduDegreeId", ResourceType = typeof(Resources.ScholarshipsResource))]
        public int EduDegreeId { get; set; }

		[ForeignKey("Country")]
		[DataMember, Display(Name = "CountryId", ResourceType = typeof(Resources.ScholarshipsResource))]
        public int CountryId { get; set; }

        //[ForeignKey("Epc")]
        //[DataMember, Display(Name = "EpcId", ResourceType = typeof(Resources.ScholarshipsResource))]
        //public Nullable<int> EpcId { get; set; }

		[DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.ScholarshipsResource))]
        public decimal Amount { get; set; }

		[DataMember, Display(Name = "Closed", ResourceType = typeof(Resources.ScholarshipsResource))]
        public decimal Closed { get; set; }

		[DataMember, Display(Name = "DateSignStart", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<System.DateTime> DateSignStart { get; set; }

		[DataMember, Display(Name = "DateSignEnd", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<System.DateTime> DateSignEnd { get; set; }

		[DataMember, Display(Name = "TimeStart", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<System.TimeSpan> TimeStart { get; set; }

		[DataMember, Display(Name = "TimeEnd", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<System.TimeSpan> TimeEnd { get; set; }

		[DataMember, Display(Name = "EduYearEnd", ResourceType = typeof(Resources.ScholarshipsResource))]
        public string EduYearEnd { get; set; }

		[DataMember, Display(Name = "EduYearStart", ResourceType = typeof(Resources.ScholarshipsResource))]
        public string EduYearStart { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.ScholarshipsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.ScholarshipsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual ScholarshipType ScholarType { get; set; }

		public virtual ScholarshipFund ScholarFund { get; set; }

		public virtual MasEduDegree EduDegree { get; set; }

		public virtual HRM.MasCountry Country { get; set; }

		// public virtual Ep Epc { get; set; }

    }
}